package com.laizhenghua.hotel.service.impl;

import com.laizhenghua.hotel.utils.PageUtils;
import com.laizhenghua.hotel.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.laizhenghua.hotel.dao.AdsDao;
import com.laizhenghua.hotel.entity.AdsEntity;
import com.laizhenghua.hotel.service.AdsService;



@Service("adsService")
public class AdsServiceImpl extends ServiceImpl<AdsDao, AdsEntity> implements AdsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AdsEntity> page = this.page(
                new Query<AdsEntity>().getPage(params),
                new QueryWrapper<AdsEntity>()
        );
        return new PageUtils(page);
    }

}